<template>
  <div>
      <ul class="BgAnimation-Box">
          <li></li>
          <li></li>
          <li></li>
          <li></li>
      </ul>
  </div>
</template>

<script>
export default {
  name: '',
  data () {
    return {
    }
  },
  methods: {

  },
  mounted () {

  }
}
</script>

<style scoped lang="less">
.BgAnimation-Box {
    margin: 0;
    padding: 0;
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0,134,179,0.5);
    z-index: -1;
    li {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        position: absolute;
        background-size: cover;
        background-position: 50% 50%;
        opacity: 0;
        z-index: 0;
        background-repeat: no-repeat;
        animation: imageanimation 48s linear infinite;
        &:nth-child(1) {
            background-image: url('@/views/Login/Background/images/bg-1.jpg');
        }
        &:nth-child(2){
            background-image: url('@/views/Login/Background/images/bg-2.jpg');
            animation-delay: 12s;
        }
        &:nth-child(3){
            background-image: url('@/views/Login/Background/images/bg-3.jpg');
            animation-delay: 24s;
        }
        &:nth-child(4){
            background-image: url('@/views/Login/Background/images/bg-4.jpg');
            animation-delay: 36s;
        }   
    }
    @keyframes imageanimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }
    8% {
        opacity: 1;
        transform: scale(1.1);
        animation-timing-function: ease-out;
    }
    17% {
        opacity: 1;
        transform: scale(1.2);
    }
    25% {
        opacity: 0;
        transform: scale(1.3);
    }
    100% {
        opacity: 0;
    }
}
}
</style>
